#ifndef ADMINDIALOG_H
#define ADMINDIALOG_H

#include "dialogbase.h"
#include "ui_admindialog.h"
#include "admindbmanager.h"

class AdminDialog : public DialogBase<Ui_adminDialog>
{
    Q_OBJECT

public:
    AdminDialog( QWidget  *parent );
    ~AdminDialog();

private slots:
    void onAdd();
    void onUpdate();
    void onRemove();
    void onTopicViewContextMenu( const QPoint & pos, const QModelIndex & selModelIndex );
    void onTopicTableViewDoubleClicked( const QModelIndex & modelIndex );
    void onSelectionChanged( const QItemSelection & selected, const QItemSelection & deselected );

private:
    TopicManager m_topicManager;
};

#endif
